package com.cy.train.business.service;

import com.cy.train.business.domain.DailyTrainSeat;
import com.cy.train.common.resp.PageResp;
import com.cy.train.business.req.DailyTrainSeatQueryReq;
import com.cy.train.business.req.DailyTrainSeatSaveReq;
import com.cy.train.business.resp.DailyTrainSeatQueryResp;

import java.util.Date;
import java.util.List;

public interface DailyTrainSeatService {
    void save(DailyTrainSeatSaveReq req);

    PageResp<DailyTrainSeatQueryResp> queryList(DailyTrainSeatQueryReq req);

    void delete(Long id);

    void genDaily(Date date, String trainCode);

    public Long countSeatByTrainCode(Date date, String trainCode, String seatType);

    List<DailyTrainSeat> getSeatByCarriage(Date date, String trainCode, Integer carriageIndex);
}